using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

using Chess;

namespace PDAChess
{
    public partial class ucNewGame: UserControl
    {
        public event ucGameOption.Create_Click OnCreateClick;
        public event ucGameOption.Cancel_Click OnCancelClick;

        public GameOption Options
        {
            get
            {
                return gameOption1.Options;
            }
            set
            {
                gameOption1.Options = value;
            }
        }

        public ucNewGame()
        {
            InitializeComponent();
        }

        private void gameOption1_CreateClick()
        {
            if (OnCreateClick != null)
            {
                OnCreateClick();
            }
        }

        private void gameOption1_CancelClick()
        {
            if (OnCancelClick != null)
            {
                OnCancelClick();
            }
        }


    }
}
